<?php
require_once 'Zend/Mail/Transport/Smtp.php';
require_once 'Zend/Mail.php';
$settings = array(
		'ssl'=>'ssl',
		'port'=>465,
		'auth' => 'login',
		'username' => 'shlomiphp@gmail.com',
		'password' => '*********'
);

$transport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $settings);
$email_from = "shlomiphp@gmail.com";
$name_from = "shlomi";
$email_to = "olgasour@gmail.com";
$name_to = "olgasour";

$mail = new Zend_Mail ();
$mail->setReplyTo($email_from, $name_from);
$mail->setFrom ($email_from, $name_from);
$mail->addTo ($email_to, $name_to);
$mail->setSubject ('Testing email using google accounts and Zend_Mail');
$mail->setBodyText ("Email body");
$mail->send($transport);
